package com.mark.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    /**
     * 每页开始
     */
    private  Integer currentPage =1;
    /**
     * 每页条数
     */
    private  Integer pageSize =5;
    /**
     * 当前页开始下标
     */
    private Integer begin;
    /**
     * 加一个关键字
     */
    private String keyword;

    public Integer getBegin() {
        return (this.currentPage-1)*this.pageSize;
    }
}